-- GENERATED SPELL FOR [Captain Zovax] --


function spell0_20727(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20727', 532, 1)
end

function spell1_20727(pUnit, Event) --@Toughen,Self--
pUnit:FullCastSpellOnTarget(33962,pUnit)
pUnit:RegisterEvent('Sorts_20727', 571, 1)
end

function Sorts_20727(pUnit, Event)
local choix_sorts_20727 = math.random(0, 1)
if choix_sorts_20727 == 0 then
pUnit:RegisterEvent('spell0_20727', 1, 1)
end
if choix_sorts_20727 == 1 then
pUnit:RegisterEvent('spell1_20727', 1, 1)
end
end

function mob20727_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20727', math.random(1500, 3000), 1)
end

function mob20727_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20727_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20727_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20727, 1, 'mob20727_Action')
RegisterUnitEvent(20727, 2, 'mob20727_Leave')
RegisterUnitEvent(20727, 3, 'mob20727_Kill')
RegisterUnitEvent(20727, 4, 'mob20727_Die')
